﻿using UnityEngine;

public class ClickThroughMain : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        var btns = transform.GetComponentsInChildren<UnityEngine.UI.Button>();
        foreach (var btn in btns)
        {
            btn.onClick.AddListener(() => {
                Debug.Log("按钮:" + btn.name + " 被点击了");
            });
        }
    }

}
